//
//  BaseOperator.h
//  CToolBox
//
//  Created by SC on 16/12/14.
//  Copyright © 2016年 SC. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DataVisitor.h"
//#import "BackLoadDataHandler.h"
@class DTOPageInfo;
@class DTOError;

extern NSString *DTODataKey;
extern NSString *DTOPageInfoKey;
extern NSString *DTOActionKey;

@interface BaseOperator : NSObject<CTVisitorDelegate>

@property (nonatomic, copy) NSString *apiArea;
@property (nonatomic, weak) id<CTOperatorDelegate> delegate;

//网络数据成功回调block
typedef void (^succeedBlock)(id respondObject);

//失败回调
typedef void (^failureBlock)(id respondObject);


typedef void (^errorBlock)(DTOError *respondObject);

- (void)setHostWithPath:(NSString *)path;

- (NSString *)getUrlWithMethod:(NSString *)method;

@end
